package com.eedi.framework.sms.controller.sys.vo.template;

import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.sms.enums.SmsBizTypeEnum;
import com.eedi.framework.sms.enums.SmsClientTypeEnum;
import com.eedi.framework.sms.enums.SmsNotifyOptionalEnum;
import com.eedi.framework.sms.enums.SmsSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Schema(description = "系统界面 - 短信模板新增/修改 Request VO")
@Data
public class SysSmsTemplateSaveReq {

    @Schema(description = "短信消息模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27083")
    @NotEmpty(message = "短信消息模板ID不能为空")
    private String sysSmsTemplateId;

    @Schema(description = "应用端：1用户端 2 医生端", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "应用端：1用户端 2 医生端不能为空")
    private SmsClientTypeEnum sysSmsTemplateClientType;

    @Schema(description = "业务场景类型：1注册登录 2 问诊 3 处方 详情见枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "业务场景类型：1注册登录 2 问诊 3 处方 详情见枚举不能为空")
    private SmsBizTypeEnum sysSmsTemplateBizType;

    @Schema(description = "短信触发条件：1.登录验证码通知 2 医生接诊通知 详情见枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private SmsSceneEnum sysSmsTemplateScene;

    @Schema(description = "短信模板内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "短信模板内容不能为空")
    private String sysSmsTemplateContent;

    @Schema(description = "短信 API 的模板编号")
    @NotEmpty(message = "短信模板内容不能为空")
    private String sysSmsTemplateApiCode;

    @Schema(description = "短信模板说明", example = "你猜")
    private String sysSmsTemplateDesc;

    @Schema(description = "短信通知模式：0 必选 1 可选", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "短信通知模式：0 必选 1 可选不能为空")
    private SmsNotifyOptionalEnum sysSmsTemplateNotifyOptional;

    @Schema(description = "模板启用状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "模板启用状态不能为空")
    private CommonStatusEnum sysSmsTemplateStatus;

}
